// 自动生成模板LsGoodClass
package goodclass

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// lsGoodClass表 结构体  LsGoodClass
type LsGoodClass struct {
	global.GVA_MODEL
	ClassName *string       `json:"className" form:"className" gorm:"column:class_name;comment:分类名称;size:30;" binding:"required"` //分类名称
	Pid       *int          `json:"pid" form:"pid" gorm:"column:pid;comment:0 代表顶级;"`                                             //0 代表顶级
	ClassIcon *string       `json:"classIcon" form:"classIcon" gorm:"column:class_icon;comment:分类图标;size:191;"`                   //分类图标
	Sort      *int          `json:"sort" form:"sort" gorm:"column:sort;comment:排序;"`                                              //排序
	Enable    *string       `json:"enable" form:"enable" gorm:"column:enable;comment:0 不展示 1展示;size:191;"`                        //0 不展示 1展示
	CreatedBy uint          `gorm:"column:created_by;comment:创建者"`
	UpdatedBy uint          `gorm:"column:updated_by;comment:更新者"`
	DeletedBy uint          `gorm:"column:deleted_by;comment:删除者"`
	Children  []LsGoodClass `json:"children" gorm:"-"`
}

// TableName lsGoodClass表 LsGoodClass自定义表名 ls_good_class
func (LsGoodClass) TableName() string {
	return "ls_good_class"
}
